;Section 2a: Celtic Reforms ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; declare_counter Celt_ForumCount declare_counter Celt_CityCount declare_counter Celt_TempleCount declare_counter HadCeltReform1 declare_counter HadCeltReform2 ; ; Determine if reforms have already occurred ; monitor_event SettlementTurnEnd SettlementIsLocal and SettlementBuildingExists = celt2 set_counter HadCeltReform1 1 terminate_monitor end_monitor ; monitor_event SettlementTurnEnd SettlementIsLocal and SettlementBuildingExists = celt3 set_counter HadCeltReform2 1 terminate_monitor end_monitor ; ; Count Celtic great markets ; monitor_event SettlementTurnStart FactionType gauls and I_CompareCounter Celt_Reform < 2 and SettlementBuildingExists = forum inc_counter Celt_ForumCount 1 end_monitor monitor_event SettlementTurnStart FactionType scythia and SettlementBuildingExists = forum and I_CompareCounter Celt_Reform < 2 inc_counter Celt_ForumCount 1 end_monitor monitor_event SettlementTurnStart FactionType britons and I_CompareCounter Celt_Reform < 2 and SettlementBuildingExists = forum inc_counter Celt_ForumCount 1 end_monitor ; Count Celtic large cities monitor_event SettlementTurnStart FactionType gauls and I_CompareCounter Celt_Reform < 2 and SettlementBuildingExists = proconsuls_palace inc_counter Celt_CityCount 1 end_monitor monitor_event SettlementTurnStart FactionType scythia and SettlementBuildingExists = proconsuls_palace and I_CompareCounter Celt_Reform < 2 inc_counter Celt_CityCount 1 end_monitor monitor_event SettlementTurnStart FactionType britons and I_CompareCounter Celt_Reform < 2 and SettlementBuildingExists = proconsuls_palace inc_counter Celt_CityCount 1 end_monitor ; Count Celtic major temples ;temple_of_battle_awesome_temple monitor_event SettlementTurnStart FactionType gauls and I_CompareCounter Celt_Reform < 2 and SettlementBuildingExists = temple_of_battle_awesome_temple inc_counter Celt_TempleCount 1 end_monitor monitor_event SettlementTurnStart FactionType scythia and SettlementBuildingExists = temple_of_battle_awesome_temple and I_CompareCounter Celt_Reform < 2 inc_counter Celt_TempleCount 1 end_monitor monitor_event SettlementTurnStart FactionType britons and I_CompareCounter Celt_Reform < 2 and SettlementBuildingExists = temple_of_battle_awesome_temple inc_counter Celt_TempleCount 1 end_monitor ;temple_of_farming_awesome_temple monitor_event SettlementTurnStart FactionType gauls and I_CompareCounter Celt_Reform < 2 and SettlementBuildingExists = temple_of_farming_awesome_temple inc_counter Celt_TempleCount 1 end_monitor monitor_event SettlementTurnStart FactionType scythia and SettlementBuildingExists = temple_of_farming_awesome_temple and I_CompareCounter Celt_Reform < 2 inc_counter Celt_TempleCount 1 end_monitor monitor_event SettlementTurnStart FactionType britons and I_CompareCounter Celt_Reform < 2 and SettlementBuildingExists = temple_of_farming_awesome_temple inc_counter Celt_TempleCount 1 end_monitor ;temple_of_fertility_awesome_temple monitor_event SettlementTurnStart FactionType gauls and I_CompareCounter Celt_Reform < 2 and SettlementBuildingExists = temple_of_fertility_awesome_temple inc_counter Celt_TempleCount 1 end_monitor monitor_event SettlementTurnStart FactionType scythia and SettlementBuildingExists = temple_of_fertility_awesome_temple and I_CompareCounter Celt_Reform < 2 inc_counter Celt_TempleCount 1 end_monitor monitor_event SettlementTurnStart FactionType britons and I_CompareCounter Celt_Reform < 2 and SettlementBuildingExists = temple_of_fertility_awesome_temple inc_counter Celt_TempleCount 1 end_monitor ;temple_of_forge_awesome_temple monitor_event SettlementTurnStart FactionType gauls and I_CompareCounter Celt_Reform < 2 and SettlementBuildingExists = temple_of_forge_awesome_temple inc_counter Celt_TempleCount 1 end_monitor monitor_event SettlementTurnStart FactionType scythia and SettlementBuildingExists = temple_of_forge_awesome_temple and I_CompareCounter Celt_Reform < 2 inc_counter Celt_TempleCount 1 end_monitor monitor_event SettlementTurnStart FactionType britons and I_CompareCounter Celt_Reform < 2 and SettlementBuildingExists = temple_of_forge_awesome_temple inc_counter Celt_TempleCount 1 end_monitor ;temple_of_fun_awesome_temple monitor_event SettlementTurnStart FactionType gauls and I_CompareCounter Celt_Reform < 2 and SettlementBuildingExists = temple_of_fun_awesome_temple inc_counter Celt_TempleCount 1 end_monitor monitor_event SettlementTurnStart FactionType scythia and SettlementBuildingExists = temple_of_fun_awesome_temple and I_CompareCounter Celt_Reform < 2 inc_counter Celt_TempleCount 1 end_monitor monitor_event SettlementTurnStart FactionType britons and I_CompareCounter Celt_Reform < 2 and SettlementBuildingExists = temple_of_fun_awesome_temple inc_counter Celt_TempleCount 1 end_monitor ;temple_of_governors_awesome_temple monitor_event SettlementTurnStart FactionType gauls and I_CompareCounter Celt_Reform < 2 and SettlementBuildingExists = temple_of_governors_awesome_temple inc_counter Celt_TempleCount 1 end_monitor monitor_event SettlementTurnStart FactionType scythia and SettlementBuildingExists = temple_of_governors_awesome_temple and I_CompareCounter Celt_Reform < 2 inc_counter Celt_TempleCount 1 end_monitor monitor_event SettlementTurnStart FactionType britons and I_CompareCounter Celt_Reform < 2 and SettlementBuildingExists = temple_of_governors_awesome_temple inc_counter Celt_TempleCount 1 end_monitor ;reset Celt counters monitor_event FactionTurnEnd FactionIsLocal if I_CompareCounter Celt_ForumCount > 5 set_counter Celt_Reform 1 end_if if I_CompareCounter Celt_ForumCount > 9 and I_CompareCounter Celt_CityCount > 5 and I_CompareCounter Celt_TempleCount > 5 set_counter Celt_Reform 2 end_if if I_CompareCounter Celt_Reform < 2 set_counter Celt_ForumCount 0 set_counter Celt_CityCount 0 set_counter Celt_TempleCount 0 end_if end_monitor monitor_event FactionTurnStart FactionIsLocal and I_CompareCounter Celt_ForumCount > 5 set_counter Celt_Reform 1 end_monitor monitor_event FactionTurnStart FactionIsLocal and I_CompareCounter Celt_ForumCount > 9 and I_CompareCounter Celt_CityCount > 5 and I_CompareCounter Celt_TempleCount > 5 set_counter Celt_Reform 2 end_monitor
monitor_event SettlementTurnStart SettlementName Adrumeto and I_CompareCounter Celt_Reform = 2 and not SettlementBuildingExists = celt3 and not SettlementBuildingExists > muster_field_D if not I_SettlementOwner Adrumeto = seleucid and not I_SettlementOwner Adrumeto = parthia and not I_SettlementOwner Adrumeto = pontus and not I_SettlementOwner Adrumeto = numidia and not I_SettlementOwner Adrumeto = romans_julii and not I_SettlementOwner Adrumeto = egypt and not I_SettlementOwner Adrumeto = germans and not I_SettlementOwner Adrumeto = greek_cities and not I_SettlementOwner Adrumeto = macedon and not I_SettlementOwner Adrumeto = carthage and not I_SettlementOwner Adrumeto = romans_scipii and not I_SettlementOwner Adrumeto = dacia and not I_SettlementOwner Adrumeto = armenia and not I_SettlementOwner Adrumeto = spain and not I_SettlementOwner Adrumeto = thrace and not I_SettlementOwner Adrumeto = romans_brutii and not I_SettlementOwner Adrumeto = saba and not I_SettlementOwner Adrumeto = slave console_command create_building Adrumeto "celt3" console_command create_building Adrumeto "muster_field_E" console_command set_building_health Adrumeto Barracks_D 0 end_if end_monitor
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;Section 2b: Saka Reforms ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; declare_counter Saka_Reform_Building_Exists monitor_event FactionTurnStart FactionType pontus and FactionIsLocal and I_CompareCounter Saka_Reform = 1 and I_CompareCounter Saka_Reform_Building_Exists = 0 advance_advice_thread Saka_Reforms_Message terminate_monitor end_monitor monitor_event CharacterTurnEnd Trait SakaReformer = 1 set_counter Saka_Reform 1 terminate_monitor end_monitor monitor_event SettlementTurnEnd SettlementBuildingExists = saka set_counter Saka_Reform 1 set_counter Saka_Reform_Building_Exists 1 terminate_monitor end_monitor
;------------------------------------------ ; Section: Saka Traits ;------------------------------------------ Trait SakaReformer Characters family Hidden Level Saka_Reformer Description Hidden_desc EffectsDescription Hidden_effects_desc Threshold 1
;------------------------------------------ ; Section : Saka Specific Triggers ;------------------------------------------ Trigger NotSakaReformer WhenToTest CharacterTurnEnd Condition FactionType pontus and IsFactionLeader and Trait YearsPassed > 0 and not I_SettlementOwner Baktra = pontus and not I_SettlementOwner Marakanda = pontus and not I_SettlementOwner Alexandreia_Eschate = pontus and not I_SettlementOwner Antiocheia_Margiane = pontus and not I_SettlementOwner Alexandreia_Ariana = pontus and not I_SettlementOwner Taksashila = pontus Affects ReverseYears 4 Chance 100 ;------------------------------------------ Trigger AcquireSakaReformer WhenToTest CharacterTurnEnd Condition FactionType pontus and IsFactionLeader and Trait SakaReformer < 1 and Trait YearsPassed = 4 Affects SakaReformer 1 Chance 100 ;Mod: EBMod890 - 10/01 : Saka Reforms Triggers
Trigger yearspassed_sync01 WhenToTest CharacterTurnStart Condition AgentType = family and not IsFactionLeader and FactionLeaderTrait YearsPassed = 0 and Trait YearsPassed = 1 Affects ReverseYears 1 Chance 100 ;------------------------------------------ Trigger yearspassed_sync02 WhenToTest CharacterTurnStart Condition AgentType = family and not IsFactionLeader and FactionLeaderTrait YearsPassed = 0 and Trait YearsPassed = 2 Affects ReverseYears 2 Chance 100 ;------------------------------------------ Trigger yearspassed_sync03 WhenToTest CharacterTurnStart Condition AgentType = family and not IsFactionLeader and FactionLeaderTrait YearsPassed = 0 and Trait YearsPassed = 3 Affects ReverseYears 3 Chance 100 ;------------------------------------------ Trigger yearspassed_sync04 WhenToTest CharacterTurnStart Condition AgentType = family and not IsFactionLeader and FactionLeaderTrait YearsPassed = 0 and Trait YearsPassed = 4 Affects ReverseYears 4 Chance 100 ;------------------------------------------ Trigger yearspassed_sync05 WhenToTest CharacterTurnStart Condition AgentType = family and not IsFactionLeader and FactionLeaderTrait YearsPassed = 0 and Trait YearsPassed = 5 Affects ReverseYears 5 Chance 100 ;------------------------------------------ Trigger yearspassed_sync01b WhenToTest CharacterTurnStart Condition AgentType = family and not IsFactionLeader and FactionLeaderTrait YearsPassed = 1 and Trait YearsPassed = 0 Affects YearsPassed 1 Chance 100 ;------------------------------------------ Trigger yearspassed_sync02b WhenToTest CharacterTurnStart Condition AgentType = family and not IsFactionLeader and FactionLeaderTrait YearsPassed = 1 and Trait YearsPassed = 2 Affects ReverseYears 2 Chance 100 Affects YearsPassed 1 Chance 100 ;------------------------------------------ Trigger yearspassed_sync03b WhenToTest CharacterTurnStart Condition AgentType = family and not IsFactionLeader and FactionLeaderTrait YearsPassed = 1 and Trait YearsPassed = 3 Affects ReverseYears 3 Chance 100 Affects YearsPassed 1 Chance 100 ;------------------------------------------ Trigger yearspassed_sync04b WhenToTest CharacterTurnStart Condition AgentType = family and not IsFactionLeader and FactionLeaderTrait YearsPassed = 1 and Trait YearsPassed = 4 Affects ReverseYears 4 Chance 100 Affects YearsPassed 1 Chance 100 ;------------------------------------------ Trigger yearspassed_sync05b WhenToTest CharacterTurnStart Condition AgentType = family and not IsFactionLeader and FactionLeaderTrait YearsPassed = 1 and Trait YearsPassed = 5 Affects ReverseYears 5 Chance 100 Affects YearsPassed 1 Chance 100 ;------------------------------------------ Trigger yearspassed_sync01c WhenToTest CharacterTurnStart Condition AgentType = family and not IsFactionLeader and FactionLeaderTrait YearsPassed = 2 and Trait YearsPassed = 0 Affects YearsPassed 2 Chance 100 ;------------------------------------------ Trigger yearspassed_sync02c WhenToTest CharacterTurnStart Condition AgentType = family and not IsFactionLeader and FactionLeaderTrait YearsPassed = 2 and Trait YearsPassed = 1 Affects ReverseYears 1 Chance 100 Affects YearsPassed 2 Chance 100 ;------------------------------------------ Trigger yearspassed_sync03c WhenToTest CharacterTurnStart Condition AgentType = family and not IsFactionLeader and FactionLeaderTrait YearsPassed = 2 and Trait YearsPassed = 3 Affects ReverseYears 3 Chance 100 Affects YearsPassed 2 Chance 100 ;------------------------------------------ Trigger yearspassed_sync04c WhenToTest CharacterTurnStart Condition AgentType = family and not IsFactionLeader and FactionLeaderTrait YearsPassed = 2 and Trait YearsPassed = 4 Affects ReverseYears 4 Chance 100 Affects YearsPassed 2 Chance 100 ;------------------------------------------ Trigger yearspassed_sync05c WhenToTest CharacterTurnStart Condition AgentType = family and not IsFactionLeader and FactionLeaderTrait YearsPassed = 2 and Trait YearsPassed = 5 Affects ReverseYears 5 Chance 100 Affects YearsPassed 2 Chance 100 ;------------------------------------------ Trigger yearspassed_sync01d WhenToTest CharacterTurnStart Condition AgentType = family and not IsFactionLeader and FactionLeaderTrait YearsPassed = 3 and Trait YearsPassed = 0 Affects YearsPassed 3 Chance 100 ;------------------------------------------ Trigger yearspassed_sync02d WhenToTest CharacterTurnStart Condition AgentType = family and not IsFactionLeader and FactionLeaderTrait YearsPassed = 3 and Trait YearsPassed = 1 Affects ReverseYears 1 Chance 100 Affects YearsPassed 3 Chance 100 ;------------------------------------------ Trigger yearspassed_sync03d WhenToTest CharacterTurnStart Condition AgentType = family and not IsFactionLeader and FactionLeaderTrait YearsPassed = 3 and Trait YearsPassed = 2 Affects ReverseYears 2 Chance 100 Affects YearsPassed 3 Chance 100 ;------------------------------------------ Trigger yearspassed_sync04d WhenToTest CharacterTurnStart Condition AgentType = family and not IsFactionLeader and FactionLeaderTrait YearsPassed = 3 and Trait YearsPassed = 4 Affects ReverseYears 4 Chance 100 Affects YearsPassed 3 Chance 100 ;------------------------------------------ Trigger yearspassed_sync05d WhenToTest CharacterTurnStart Condition AgentType = family and not IsFactionLeader and FactionLeaderTrait YearsPassed = 3 and Trait YearsPassed = 5 Affects ReverseYears 5 Chance 100 Affects YearsPassed 3 Chance 100 ;------------------------------------------ Trigger yearspassed_sync01e WhenToTest CharacterTurnStart Condition AgentType = family and not IsFactionLeader and FactionLeaderTrait YearsPassed = 4 and Trait YearsPassed = 0 Affects YearsPassed 4 Chance 100 ;------------------------------------------ Trigger yearspassed_sync02e WhenToTest CharacterTurnStart Condition AgentType = family and not IsFactionLeader and FactionLeaderTrait YearsPassed = 4 and Trait YearsPassed = 1 Affects ReverseYears 1 Chance 100 Affects YearsPassed 4 Chance 100 ;------------------------------------------ Trigger yearspassed_sync03e WhenToTest CharacterTurnStart Condition AgentType = family and not IsFactionLeader and FactionLeaderTrait YearsPassed = 4 and Trait YearsPassed = 2 Affects ReverseYears 2 Chance 100 Affects YearsPassed 4 Chance 100 ;------------------------------------------ Trigger yearspassed_sync04e WhenToTest CharacterTurnStart Condition AgentType = family and not IsFactionLeader and FactionLeaderTrait YearsPassed = 4 and Trait YearsPassed = 3 Affects ReverseYears 3 Chance 100 Affects YearsPassed 4 Chance 100 ;------------------------------------------ Trigger yearspassed_sync05e WhenToTest CharacterTurnStart Condition AgentType = family and not IsFactionLeader and FactionLeaderTrait YearsPassed = 4 and Trait YearsPassed = 5 Affects ReverseYears 5 Chance 100 Affects YearsPassed 4 Chance 100 ;------------------------------------------ Trigger yearspassed_sync01f WhenToTest CharacterTurnStart Condition AgentType = family and not IsFactionLeader and FactionLeaderTrait YearsPassed = 5 and Trait YearsPassed = 0 Affects YearsPassed 5 Chance 100 ;------------------------------------------ Trigger yearspassed_sync02f WhenToTest CharacterTurnStart Condition AgentType = family and not IsFactionLeader and FactionLeaderTrait YearsPassed = 5 and Trait YearsPassed = 1 Affects ReverseYears 1 Chance 100 Affects YearsPassed 5 Chance 100 ;------------------------------------------ Trigger yearspassed_sync03f WhenToTest CharacterTurnStart Condition AgentType = family and not IsFactionLeader and FactionLeaderTrait YearsPassed = 5 and Trait YearsPassed = 2 Affects ReverseYears 2 Chance 100 Affects YearsPassed 5 Chance 100 ;------------------------------------------ Trigger yearspassed_sync04f WhenToTest CharacterTurnStart Condition AgentType = family and not IsFactionLeader and FactionLeaderTrait YearsPassed = 5 and Trait YearsPassed = 3 Affects ReverseYears 3 Chance 100 Affects YearsPassed 5 Chance 100 ;------------------------------------------ Trigger yearspassed_sync05f WhenToTest CharacterTurnStart Condition AgentType = family and not IsFactionLeader and FactionLeaderTrait YearsPassed = 5 and Trait YearsPassed = 4 Affects ReverseYears 4 Chance 100 Affects YearsPassed 5 Chance 100
;reset Celt counters monitor_event FactionTurnEnd FactionIsLocal if I_CompareCounter Celt_ForumCount > 5 set_counter Celt_Reform 1 end_if if I_CompareCounter Celt_ForumCount > 11 and I_CompareCounter Celt_CityCount > 7 and I_CompareCounter Celt_TempleCount > 7 set_counter Celt_Reform 2 end_if if I_CompareCounter Celt_Reform < 2 set_counter Celt_ForumCount 0 set_counter Celt_CityCount 0 set_counter Celt_TempleCount 0 end_if end_monitor monitor_event FactionTurnStart FactionIsLocal and I_CompareCounter Celt_ForumCount > 5 set_counter Celt_Reform 1 end_monitor monitor_event FactionTurnStart FactionIsLocal and I_CompareCounter Celt_ForumCount > 11 and I_CompareCounter Celt_CityCount > 7 and I_CompareCounter Celt_TempleCount > 7 set_counter Celt_Reform 2 end_monitor
Trigger Not_SakaReformer_Baktra WhenToTest CharacterTurn End Condition FactionType pontus and IsFaction Leader and Trait YearsPassed > 0 and not I_SettlementOwner Baktra = pontus Affects ReverseYears 4 Chance 100
;------------------------------------------ ; Section : Saka Specific Triggers ;------------------------------------------ Trigger NotSakaReformer WhenToTest CharacterTurnEnd Condition FactionType pontus and IsFactionLeader and Trait YearsPassed > 0 and not I_SettlementOwner Baktra = pontus and not I_SettlementOwner Marakanda = pontus and not I_SettlementOwner Alexandreia_Eschate = pontus and not I_SettlementOwner Antiocheia_Margiane = pontus and not I_SettlementOwner Alexandreia_Ariana = pontus and not I_SettlementOwner Taksashila = pontus Affects ReverseYears 4 Chance 100 ;------------------------------------------ Trigger AcquireSakaReformer WhenToTest CharacterTurnEnd Condition FactionType pontus and IsFactionLeader and Trait SakaReformer < 1 and Trait YearsPassed = 4 Affects SakaReformer 1 Chance 100
;------------------------------------------ ; Section : Saka Specific Triggers ;------------------------------------------ Trigger NotSakaReformer WhenToTest CharacterTurnEnd Condition FactionType pontus and IsFactionLeader and Trait YearsPassed > 0 and not I_SettlementOwner Baktra = pontus Affects ReverseYears 4 Chance 100 ;------------------------------------------ Trigger NotSakaReformer2 WhenToTest CharacterTurnEnd Condition FactionType pontus and IsFactionLeader and Trait YearsPassed > 0 and not I_SettlementOwner Taksashila = pontus Affects ReverseYears 4 Chance 100 ;------------------------------------------ Trigger AcquireSakaReformer WhenToTest CharacterTurnEnd Condition FactionType pontus and IsFactionLeader and Trait SakaReformer < 1 and Trait YearsPassed = 4 Affects SakaReformer 1 Chance 100
;------------------------------------------ ; Section : Saka Specific Triggers ;------------------------------------------ Trigger NotSakaReformer WhenToTest CharacterTurnEnd Condition FactionType pontus and IsFactionLeader and Trait YearsPassed > 0 and not I_SettlementOwner Baktra = pontus and not I_SettlementOwner Marakanda = pontus and not I_SettlementOwner Alexandreia_Eschate = pontus and not I_SettlementOwner Antiocheia_Margiane = pontus and not I_SettlementOwner Alexandreia_Ariana = pontus and not I_SettlementOwner Taksashila = pontus Affects ReverseYears 4 Chance 100 ;------------------------------------------
Trigger NotSakaReformerTa WhenToTest CharacterTurnEnd Condition FactionType pontus and IsFactionLeader and Trait YearsPassed > 0 and not I_SettlementOwner Taksashila = pontus Affects ReverseYears 4 Chance 100 ;------------------------------------------ Trigger NotSakaReformerBa WhenToTest CharacterTurnEnd Condition FactionType pontus and IsFactionLeader and Trait YearsPassed > 0 and not I_SettlementOwner Baktra = pontus Affects ReverseYears 4 Chance 100 ;------------------------------------------